package com.pj.util;

import com.sun.jna.Library;
import com.sun.jna.Native;

public interface Fwlib32 extends Library {
    String dllPath = "D:\\VMware FANUC NCGUIDE\\FANUC_Focas_API-main\\Fwlib64\\Fwlib64.dll";
    Fwlib32 fwlib = (Fwlib32) Native.load(dllPath, Fwlib32.class);

    // 定义 fwlib 库中的函数接口
    int cnc_allclibhndl(int[] hd , String dev, int type);
    int cnc_alarm(int hd, int[] alm_no, int[] alm_stat );
    // 添加更多的函数接口定义
    int result = fwlib.cnc_allclibhndl(new int[123], "hello",1);
}